﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demoi
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk u = new Udisk("金士顿500GB");
            IUdisk m = new IUdisk("西部数据1TB");

            u.Start();
            u.Import();
            u.Alter();
            Console.WriteLine();
            m.Start();
            m.Import();
            m.Alter();

            Console.WriteLine();
            Computer c = new Computer("联想");

            c.Boot();
            c.Usb1 = u;
            c.Usb2 = m;
            c.ImportD();
            c.AlterD();
            c.end();
        
        //1、猫、狗、鸭、猴，（吃、游泳、爬树）
        
            Duck duck = new Duck("鸭子");
            duck.Eat();
            duck.Swim();
            Console.WriteLine("------------------");
            Dog dog = new Dog("狗子");
            dog.Eat();
            dog.Swim();
            Console.WriteLine("------------------");
            Cat cat = new Cat("猫子");
            cat.Eat();
            cat.Climb();
            Console.WriteLine("------------------");
            Monkey monkey = new Monkey("猴子");
            monkey.Eat();
            monkey.Climb();

            //www
            Onecar oc = new Onecar("一台");
            oc.Run();
            Batcar bat = new Batcar("一台蝙蝠");
            bat.Run();
            bat.FIyable();
        }
    }
}